import type { FormRules } from "naive-ui";
import { requiredRule } from "@/utils";

export interface Props {
  pageType: "add" | "edit";
  data?: Role;
}
export interface Emits {
  (e: "submitSuccess"): void;
}

export const formRules: FormRules = {
  name: requiredRule("请输入角色名称"),
  code: requiredRule("请输入角色标识"),
};
